<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>YuTori Class: クラス TestofY</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 作成： Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'検索');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">YuTori Class</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>メインページ</span></a></li>
      <li><a href="../../pages.html"><span>関連ページ</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>データ構造</span></a></li>
      <li><a href="../../files.html"><span>ファイル</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="検索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>データ構造</span></a></li>
      <li><a href="../../classes.html"><span>データ構造索引</span></a></li>
      <li><a href="../../inherits.html"><span>クラス階層</span></a></li>
      <li><a href="../../functions.html"><span>データフィールド</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public メソッド</a>  </div>
  <div class="headertitle">
<div class="title">クラス TestofY</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="TestofY" --><table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public メソッド</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ddb/class_testof_y.html#a05a8a3b5812cb7362f9ffc818593a479">TestofInstance</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ddb/class_testof_y.html#ac745cdeeaef1f219759fda3115213bb6">TestofChild</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>説明</h2>
<div class="textblock">
<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00407">407</a> 行で定義されています。</p>
</div><hr/><h2>関数</h2>
<a class="anchor" id="ac745cdeeaef1f219759fda3115213bb6"></a><!-- doxytag: member="TestofY::TestofChild" ref="ac745cdeeaef1f219759fda3115213bb6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofChild </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00418">418</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                      {
                <span class="comment">// 形を作っておく。値は区別がつく程度に適当。</span>
                $a = <a class="code" href="../../d7/d1c/class_y.html">Y</a>()-&gt;add (<span class="charliteral">&#39;a&#39;</span>, <span class="stringliteral">&#39;value_a&#39;</span>);
                $b = $a-&gt;add (<span class="charliteral">&#39;b&#39;</span>, <span class="stringliteral">&#39;value_b&#39;</span>);
                $c = $b-&gt;add (<span class="charliteral">&#39;c&#39;</span>, <span class="stringliteral">&#39;value_c&#39;</span>);
                $a2 = <a class="code" href="../../d7/d1c/class_y.html">Y</a>()-&gt;add (<span class="stringliteral">&#39;a2&#39;</span>, <span class="stringliteral">&#39;value_a2&#39;</span>);
                $b2 = $a2-&gt;add (<span class="stringliteral">&#39;b2&#39;</span>, <span class="stringliteral">&#39;value_b2&#39;</span>);
                $b22 = $a2-&gt;add (<span class="stringliteral">&#39;b22&#39;</span>, <span class="stringliteral">&#39;value_b22&#39;</span>);
                $c2 = $b2-&gt;add (<span class="stringliteral">&#39;c2&#39;</span>, <span class="stringliteral">&#39;value_c2&#39;</span>);
                $c22 = $b2-&gt;add (<span class="stringliteral">&#39;c22&#39;</span>, <span class="stringliteral">&#39;value_c22&#39;</span>);
                $a3 = <a class="code" href="../../d7/d1c/class_y.html">Y</a>()-&gt;add (<span class="stringliteral">&#39;a3&#39;</span>, <span class="stringliteral">&#39;value_a3&#39;</span>);
                $b3 = $a3-&gt;add (<span class="stringliteral">&#39;b3&#39;</span>, <span class="stringliteral">&#39;value_b3&#39;</span>);
                $c3 = $b3-&gt;add (<span class="stringliteral">&#39;c3&#39;</span>, <span class="stringliteral">&#39;value_c3&#39;</span>);
                
                <span class="comment">// 文字列セレクタのテスト</span>
                <span class="comment">// 1段階</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="charliteral">&#39;a&#39;</span>)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;child文字列指定1段階(a)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39; a2 &#39;</span>)-&gt;pick() === $a2-&gt;pick(), <span class="stringliteral">&#39;child文字列指定1段階(a2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a3.&#39;</span>)-&gt;pick() === $a3-&gt;pick(), <span class="stringliteral">&#39;child文字列指定1段階(a3.)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a4&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定1段階(a4、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 2段階</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a.b&#39;</span>)-&gt;pick() === $b-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a.b)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a2 . b2&#39;</span>)-&gt;pick() === $b2-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a2 . b2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a3 . b3 .&#39;</span>)-&gt;pick() === $b3-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a3 . b3 .)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="charliteral">&#39;b&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定1段階(b、2段階目に存在している)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a.b2&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定2段階(a.b2、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 3段階</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a.b.c&#39;</span>)-&gt;pick() === $c-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a.b.c)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a2 . b2 . c2&#39;</span>)-&gt;pick() === $c2-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a2 . b2 . c2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a3 . b3 . c3 .&#39;</span>)-&gt;pick() === $c3-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a3 . b3 . c3 .)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;b.c&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定2段階(b.c、3段階目に存在している)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a.b.c2&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定3段階(a.b.c2、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 数値セレクタのテスト</span>
                <span class="comment">// 1段階</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(0)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;child数値指定1段階(0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(1)-&gt;pick() === $a2-&gt;pick(), <span class="stringliteral">&#39;child数値指定1段階(1)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(2)-&gt;pick() === $a3-&gt;pick(), <span class="stringliteral">&#39;child数値指定1段階(2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(3)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定1段階(3、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 2段階</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;0.0&#39;</span>)-&gt;pick() === $b-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(0.0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;1.0&#39;</span>)-&gt;pick() === $b2-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(1.0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;1.1.&#39;</span>)-&gt;pick() === $b22-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(1.1.)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;0.1&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定2段階(0.1、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 3段階</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;0.0.0&#39;</span>)-&gt;pick() === $c-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(0.0.0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;1.0.1&#39;</span>)-&gt;pick() === $c22-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(1.0.1)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;2.0.0.&#39;</span>)-&gt;pick() === $c3-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(2.0.0.)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;1.1.2&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定3段階(1.1.2、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 文字・数値混在</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a2.1&#39;</span>)-&gt;pick() === $b22-&gt;pick(), <span class="stringliteral">&#39;child混在指定(a2.1)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a.0.&#39;</span>)-&gt;pick() === $b-&gt;pick(), <span class="stringliteral">&#39;child混在指定(a.0.)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="stringliteral">&#39;a.1&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定1段階(a.1、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// オブジェクトセレクタのテスト</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>($a)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;childオブジェクト指定($a)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>($b)-&gt;isEmpty(), <span class="stringliteral">&#39;childオブジェクト指定($b、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 戻り値の確認。</span>
                $this-&gt;assertTrue(<a class="code" href="../../d7/d1c/class_y.html">Y</a>(<span class="charliteral">&#39;a&#39;</span>)-&gt;getType() === <span class="stringliteral">&#39;scalar&#39;</span>, <span class="stringliteral">&#39;childの戻り値のgetTypeが間違っています。&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a05a8a3b5812cb7362f9ffc818593a479"></a><!-- doxytag: member="TestofY::TestofInstance" ref="a05a8a3b5812cb7362f9ffc818593a479" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00408">408</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                         {
                <span class="comment">// 二度呼び出して同じものかどうか</span>
                $a = <a class="code" href="../../d7/d1c/class_y.html">Y</a>();
                $b = <a class="code" href="../../d7/d1c/class_y.html">Y</a>();
                $this-&gt;assertTrue($a === $b, <span class="stringliteral">&#39;Y()を二度呼び出した場合、別の参照になっています。&#39;</span>);
                $this-&gt;assertIdentical($a-&gt;getName(), <span class="stringliteral">&#39;Root&#39;</span>, <span class="stringliteral">&#39;getNypeが間違っています。&#39;</span>);
                $this-&gt;assertIdentical($a-&gt;getType(), <span class="stringliteral">&#39;null&#39;</span>, <span class="stringliteral">&#39;getTypeが間違っています。&#39;</span>);
        }
</pre></div>
</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全て</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>データ構造</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>関数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>変数</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>YuTori Classに対してMon May 21 2012 00:22:17に生成されました。&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
